/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.allscore.cloud.demo.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Administrator
 */
@RestController
public class DemoController {

    @GetMapping("/hello")
    public String hello(String a) {
        System.out.println("调用 hello 方法 " + a);
        return "hello " + a;
    }

    @PostMapping("/test")
    public String Test(String b) {
        System.out.println("调用 test 方法 " + b);
        return "test " + b;
    }

}
